// app.js
App({
  onLaunch() {
    // 登录
    wx.login({
      success: res => {
        wx.request({
          url: 'http://localhost:8091/rms/wx/login/' + res.code,
          success:(response) => {
              wx.setStorageSync('openid', response.data.data.openid);
          }
        })
      }
    })
  },
  globalData: {
    userInfo: null
  }
})
